home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
alpha
/
dipc
/
dipc-0.000
/
dipc-0
/
dipc-0.15
/
quick.start
< prev
next >
Wrap
Text File
|
1996-07-05
|
5KB
|
113 lines
This file is for people who want to install and test DIPC, without being
forced to do a lot of reading. It describes what you should do in a step by
step manner. You can later refer to other documents to better understand
what you where doing here.
DIPC is of practical use when you want to use it on more than one computer,
but you can still install it to test it and get a feeling of how it works,
even if you have only one machine available.
0) If you intend to use more than one computer, make sure you have an
account with the SAME login name on all of them (passwords are not important).
This login name could be anything, as long as it is yours on all the
machines.
Also make sure that swapping to disk is enabled in all computers. You can
create a swap area with the mkswap command. The OS will start swapping with
the swapon command.
1) Become the root. To do so you may log in as root, or you may use the
command 'su' to become the super user. You need to know the root password to
do so. You also need to know the IP addresses of all the computers you want
to install DIPC on. This should be in dots-and-numbers notation (something
like a.b.c.d).
2) Now run the dipc.install script. Just type its name. It will do many of
the things necessary for the installation of DIPC. But there are some other
things that should still be done by you.
2) Type adduser to create a new account for a user called dipcd. the user
id, group id and the password values are not important.
3) Go to the directory where the kernel files are placed (/usr/src/linux)
type 'make config'. Answer all the question with the default value offered.
The only exception is when it asks if you want System V IPC support. Make
sure you answer yes. Now type 'make dep; make clean; make zImage' to compile
the kernel.
4) Copy the new kernel (probably from arch/i386/boot) to the root directory.
Then install the new kernel (by lilo). Now the kernel of your computer has
support for DIPC.
5) If you have multiple computers that are connected by a TCP/IP network
(This could include networks connected by Ethernet boards), Then repeat the
above on the other computers that you want to install DIPC on.
6) Now you should select one of the computers as the 'main' one. In DIPC
terms it is called a 'referee'. If you have only one computer, then you don't
have any difficulty selecting this referee machine! :-). Otherwise you may
want to choose the one that is faster, or has more memory, as the referee.
7) In all the computers, edit the file /etc/dipc.conf. This is the
configuration file of DIPC. Move the cursor to line that has the phrase
this_computer, and substitute the IP address of that machine for the default
value provided. In the line that starts with the referee word, substitute
the default value with the IP address of the referee computer that you chose
before.
8) Reboot the computers.
If everything has gone all right, then the next time that the system comes up,
you are able to run programs written for DIPC. You may find some examples in
the examples directory. The rest will show you how to run a simple example.
9) The first example you may want to run is in the examples/message
directory. Go to that directory and type make. When this is done, two
executable programs with the names message1 and message2 are produced. Make
sure you are the owner of these programs. Use ls -l to find out about it.
You can become the owner a of file by giving the command
chown <your login name> <file's name>.
10) If you are using more than one computer, copy the message2 file to your
account on another machine.
11) Execute message1. Then execute message2 on the other computer. If you
have only one computer, you may execute message2 from another virtual
terminal. See the results?.
Now we will see how to execute a more complex example. This is the program
in the examples/pi directory.
12) Change dir to the examples/pi directory. Type make. When done, two
executable programs with the names pi and integrator are created. Make yourself
the owner of these files (see the last example). Copy both files, plus the file
pi_s to the top level of your home directory in all computers on which you
have installed DIPC.
13) Execute the pi program. This will invoke 10 integrator processes in the
same computer that the pi program is running, and compute the value of the
famous PI in mathematics. This may take several minutes.
14) If you have more than one computer on the network with DIPC installed,
you may want to see the effect of computing this value in parallel. To do so,
edit the file pi_s. Here Lines beginning with a # are commented. This is a
script file with 2 entries for each invocation of the integrator program. One
is for the execution of integrator on another computer by using the UNIX rsh
command (remote execution), and the other is for local execution. Uncomment
some of the lines corresponding to remote execution and change the IP address
appearing there with the IP address of a suitable computer in your network.
Don't forget to comment the corresponding local execution. Now run the pi
command again. See if the execution time is reduced this time.
I think now you are able to test other examples on your own. For more
information of DIPC read the files in the docs directory. Enjoy!